import axios from "axios"

export default class MaterialContractModel{
  static materialContractModel=null;

  static getInstance(){
    if(this.materialContractModel==null){
      this.materialContractModel=new MaterialContractModel();
    }
    return this.materialContractModel;
  }

  saveMaterialContract(contract,details){
    return axios.post("http://localhost/MaterialContract",{"contract":contract,"details":details});
  }
  getContractList(args){
    return axios.get("http://localhost/MaterialContract",{params:args})
  }
}